package executor;

import mapper.SqlCommandType;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    Object execute(SqlCommandType sqlCommandType, String sql, Object[] params) throws SQLException;

    <T> List<T> executeSelect(String sql, Object[] params, Class<T> tClass) throws SQLException;

    <T> T executeSelectOne(String sql, Object[] params, Class<T> tClass) throws SQLException;

}
